function save() {
    var siteDomain = $("#siteDomain").val();
    siteDomain = siteDomain.trim();
    var interval = $("input[type='radio']:checked").val();
    //移除display:none属性
    $("#loadingToast").removeAttr("style");
    $.post(
        "/icp/saveConfig",
        {
            siteDomain: siteDomain,
            interval: interval
        }, function (data) {
            $("#loadingToast").attr("style","display:none");
            showAlert(data.msg);

        }
    )

}


function edit() {
    var siteDomain = $("#siteDomain").val();
    siteDomain = siteDomain.trim();
    var interval = $("input[type='radio']:checked").val();
    var id = $("#id").val();
    //移除display:none属性
    $("#loadingToast").removeAttr("style");
    $.post(
        "/quartz/edit",
        {
            url: siteDomain,
            interval: interval,
            jobGroup: $("#jobGroup").val(),
            id:id
        }, function (data) {
            $("#loadingToast").attr("style","display:none");
            showAlert(data.msg);
        }
    )
}





function showAlert(msg) {
    $("#alert").removeAttr("style");
    $("#alertContent").text(msg);

}

function hideAlert() {
    $("#alert").attr("style","display: none;");
}